Carbon


Eject

Header: Files.h Carbon status: Supported

Places a volume offline and ejects it.

OSErr Eject (
    ConstStr63Param volName, 
    SInt16 vRefNum
);
volName

The name of a volume.

vRefNum

A volume reference number, a working directory reference number, a drive number, or 0 for the default volume.

function result

A result code.

DISCUSSION

The Eject function flushes the specified volume, places it offline, and then ejects the volume.

Most applications do not need to use this function, because the user typically ejects (and possibly also unmounts) a volume in the Finder.

AVAILABILITY

Supported in Carbon. Not available in Carbon.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)